//
//  TTFileDown.h
//  WxIOSReaderForiPhone
//
//  Created by anzeinfo on 17-11-14.
//  Copyright (c) 2017年 anzeinfo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

NS_ASSUME_NONNULL_BEGIN
@interface TTFileDown : AFHTTPSessionManager
+(TTFileDown *)sharedManager;
-(void)downFile:(NSString*)url
       filePath:(NSString*)filePath
       progress:(void(^)(float progress))onDownProgress
       sucessed:(void(^)(void))onSucessed
        failure:(void(^)(void))onFailure;
//TaskManager Motheds
-(Boolean)resume:(NSString *)url;
-(void)cancel:(NSString *)url;
-(Boolean)isExist:(NSString *)url;
-(int)Count;
@end
NS_ASSUME_NONNULL_END


